<?php

CLASS adodb_wrapper EXTENDS add_object_wrapper {
   /**
    * Throws the error when there is
    *
    */
   function __call($method, $args) {
      $adodb = $this->qE7u8afa4u_add_wrapped_instance;

      $result = parent::__call($method,$args);

      if (!$result && $adodb->ErrorMsg()) {
         $data = array(
               'result' => $result,
               'method_call' => array(array($adodb, $method),$args)
            );
         throw new e_database($adodb->ErrorMsg(),$data, $adodb->ErrorNo());
      }

      return $result;
   }

}